package homework.test1;

import java.io.File;
import java.io.IOException;

//使用file类在指定路径下创建文件
public class Demo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("Day11\\src\\homework\\a.txt");
        boolean flag = file.createNewFile();
        System.out.println(flag);
    }
}
